import Router from 'koa-router'
import config from '../config/config.dev'
import PostController from '../controller/post.controller'

const router = new Router({prefix: '/post'})

router.post('/post', PostController.post)
router.post('/comment', PostController.comment)
router.get('/get_moderate_posts', PostController.getModeratePosts)
router.get('/get_posts', PostController.getPosts)
router.get('/get_posts_by_relationship', PostController.getPostsByRelationship)
router.get('/get_topics', PostController.getTopics)
router.get('/get_topic_posts', PostController.getSubPosts)
router.get('/get_sub_posts', PostController.getSubPosts)
// router.get('/get_user_posts', PostController.getUserPosts)
router.get('/get_subarea', PostController.getSubarea)
router.get('/get_subareas', PostController.getSubareas)
// router.get('/search_post', PostController.searchPost)
router.get('/change_status', PostController.changeStatus)
router.get('/change_relationship', PostController.changeRelationship)
export default router.routes()
